import request from '@/utils/request'

// 创建地块许可证
export function createwrdklicence(data) {
  return request({
    url: '/wrdk/wrdklicence/create',
    method: 'post',
    data: data
  })
}

// 更新地块许可证
export function updatewrdklicence(data) {
  return request({
    url: '/wrdk/wrdklicence/update',
    method: 'put',
    data: data
  })
}

// 删除地块许可证
export function deletewrdklicence(id) {
  return request({
    url: '/wrdk/wrdklicence/delete?id=' + id,
    method: 'delete'
  })
}

// 获得地块许可证
export function getwrdklicence(id) {
  return request({
    url: '/wrdk/wrdklicence/get?id=' + id,
    method: 'get'
  })
}

// 获得地块许可证分页
export function getwrdklicencePage(query) {
  return request({
    url: '/wrdk/wrdklicence/page',
    method: 'get',
    params: query
  })
}

// 导出地块许可证 Excel
export function exportwrdklicenceExcel(query) {
  return request({
    url: '/wrdk/wrdklicence/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
